feat: Mempool transaction verifier service#15
Open
toruguera wants to merge 4 commits intofeat/mempool-slots-execution-servicefrom
Open
feat: Mempool transaction verifier service#15toruguera wants to merge 4 commits intofeat/mempool-slots-execution-servicefrom
toruguera wants to merge 4 commits intofeat/mempool-slots-execution-servicefrom
Conversation
…etwork and handle it in the database
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implement Verifier Service and System Integration
Summary
Implements the Verifier Service to monitor and verify transactions on the Stellar network, and integrates the complete mempool system into the application startup.
Changes
Verifier Service
verifier.service.ts: Pure functionverifyTransactionOnNetwork()that checks transaction status on Stellar networkverifier.process.ts:Verifierclass with:UNVERIFIEDtransactionsVERIFIEDorFAILEDCOMPLETEDorPENDING(for retry)verifier.types.ts: Types for verification resultsverifier.errors.ts: Specific error classesSystem Integration
mempool/index.ts: Extended with:initializeMempoolSystem()function for complete system initializationshutdownMempoolSystem()for graceful shutdownmain.ts: Integrated mempool system initialization before HTTP server startup with graceful shutdown handlersFeatures
Files Created
src/core/service/verifier/verifier.types.tssrc/core/service/verifier/verifier.errors.tssrc/core/service/verifier/verifier.service.tssrc/core/service/verifier/verifier.process.tsFiles Modified
src/core/mempool/index.tssrc/main.tsEnvironment Variables
Requires new variables:
MEMPOOL_VERIFIER_INTERVAL_MSMEMPOOL_TTL_CHECK_INTERVAL_MS